package cn.psvmc.cxzapi.model.order;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 订单操作日志表
 * @Author auto
 * @Date 2024-08-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_order_log")
public class TOrderLog implements Serializable {

    //订单操作日志id
    @TableId(value = "olid", type = IdType.AUTO)
    private Integer olid;

    //订单号
    @TableField("order_code")
    private String orderCode;

    //日志类型
    @TableField("log_type")
    private String logType;

    //日志
    @TableField("comm")
    private String comm;

    //附件
    @TableField("file_path")
    private String filePath;

    //创建人id
    @TableField(value = "createid", fill = FieldFill.INSERT)
    private Integer createid;

    //创建时间
    @TableField(value = "createtime", fill = FieldFill.INSERT)
    private LocalDateTime createtime;

    //金额
    @TableField(exist = false)
    private Double amount;

    //订单id
    @TableField(exist = false)
    private Integer orderId;

    @TableField(exist = false)
    //账单ids
    private List<Integer> obids;

    @TableField(exist = false)
    //账单id
    private Integer obid;


}
